package com.ruoyi.system.service;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.PostRequest;
import com.dtflys.forest.annotation.Request;
import com.ruoyi.system.domain.Forest.grm.AuthGRM;
import com.ruoyi.system.interceptor.GRMAuthInterceptor;
import com.ruoyi.system.interceptor.TokenHeaderInterceptor;

@BaseRequest(
        baseURL = "${grmDomain}"     // 默认域名
        ,interceptor = GRMAuthInterceptor.class,
        headers = {"Connection:keep-alive"}
)
public interface GRMAuthClient {

    @Request(
            type = "post",
            contentType = "text/plain",
            data = "GRM=${grmUser}\nPASS=${grmPassword}"
    )
    AuthGRM getToken();
}
